package com.ybkj.o2o.sales.entity;


import java.math.BigDecimal;

/**
 * 客户所持优惠劵.
 * 
 * @author Shine
 * 
 */
public class Coupon extends Base {
  /**
   * 版本号.
   */
  private static final long serialVersionUID = 1L;

  public static final int COUPON_STATUS_NOTBIND = 0;
  public static final int COUPON_STATUS_NOTUSE = 1;
  public static final int COUPON_STATUS_HASUSED = 2;
  public static final int COUPON_STATUS_INVALID = 3;

  private Long passengerId;// 客户ID

  private String phone;// 客户手机

  private Long couponRuleId;// 优惠券规则ID

  private CouponRule couponRule;

  private Integer status;// 0未绑定 1未用(已绑定) 2已用 3失效

  private String code;// 编码

  private Long runCode;

  private String codeKey;// 密码

  private String appKey;

  /** 线路ID */
  private Long lineId;

  /** 线路名 */
  private String lineName;

  /** 线路优惠券金额 */
  private BigDecimal couponPrice;


  private Double couponDiscount;

  public Double getCouponDiscount() {
    return couponDiscount;
  }

  public void setCouponDiscount(Double couponDiscount) {
    this.couponDiscount = couponDiscount;
  }

  public String getLineName() {
    return lineName;
  }

  public void setLineName(String lineName) {
    this.lineName = lineName;
  }

  public  BigDecimal getCouponPrice(){
    return couponPrice;
  }

  public void setCouponPrice(BigDecimal couponPrice){
    this.couponPrice = couponPrice;
  }

  public Long getLineId() {
    return lineId;
  }

  public void setLineId(Long lineId) {
    this.lineId = lineId;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public String getCodeKey() {
    return codeKey;
  }

  public void setCodeKey(String codeKey) {
    this.codeKey = codeKey;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public Long getCouponRuleId() {
    return couponRuleId;
  }

  public void setCouponRuleId(Long couponRuleId) {
    this.couponRuleId = couponRuleId;
  }

  public CouponRule getCouponRule() {
    return couponRule;
  }

  public void setCouponRule(CouponRule couponRule) {
    this.couponRule = couponRule;
  }

  public Long getRunCode() {
    return runCode;
  }

  public void setRunCode(Long runCode) {
    this.runCode = runCode;
  }

  public Long getPassengerId() {
    return passengerId;
  }

  public void setPassengerId(Long passengerId) {
    this.passengerId = passengerId;
  }

  public String getAppKey() {
    return appKey;
  }

  public void setAppKey(String appKey) {
    this.appKey = appKey == null ? null : appKey.trim();
  }



}
